package org.zcl.循环;

/**
 * @PROJECT_NAME:
 * @DESCRIPTION: 语句在条件3前执行
 * @USER: ZhuChengLin
 * @DATE: 2021/11/24 9:44
 */
public class ForDemo {
    static boolean foo(char c) {
        System.out.print(c);
        return true;
    }

    public static void main(String[] argv) {
        int i = 0;
        for (foo('A'); foo('B') && (i < 2); foo('C')) {
            i++;
            foo('D');
        }
    }
}
